package com.zjc.activiti;

import com.zjc.service.A_Task;
import org.activiti.engine.RuntimeService;
import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/4/20.
 */
public class TimeTask extends BaseActiviti {

    @Test
    public  void deploy(){
        this.baseDeploy("timeTask.bpmn");
    }

    @Test
    public void startProcess(){
        RuntimeService runtimeService=this.processEngine.getRuntimeService();
        Map<String,Object> map=new HashMap<>();
        map.put("a_task",new A_Task());
        runtimeService.startProcessInstanceByKey("tt_process",map);
        while (true){}
    }
}
